home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 4
/
Aminet 4 - November 1994.iso
/
aminet
/
comm
/
term
/
vltj5867.lha
/
VLT
/
rexx
/
LastMsgTTX.vlt
< prev
next >
Wrap
Text File
|
1994-03-27
|
1KB
|
40 lines
/** LastMsg.vlt
*
* Test of VLT review buffer.
* When you're on BIX after having read a message, this script
* will bring up the same message into Turbotext.
*
**/
/*
* Add libraries if necessary
*/
if show("l", "rexxarplib.library") = 0 then do
check = addlib('rexxsupport.library', 0, -30, 0)
check = addlib('rexxarplib.library', 0, -30, 0)
end
/*
* The following sequence determines both VLT's screen and port name
*/
vltport = address()
cols = ScreenCols(vltport)
if cols == -1 then vltscreen = ""
else vltscreen = vltport
'rev "D"' /* Deselect all */
'rev "R ======"' /* Search reverse for "======" */
'rev "S B"' /* Select all to bottom */
'rev "R R:"' /* Search reverse for "R:" */
'rev "D S"' /* Deselect this "search line" */
'rev "R no more unread"' /* Search for "no more unread" */
'rev "D S"' /* Deselect that one too */
'rev "R Hit <Return>"' /* Search for "Hit <return>" */
'rev "D S"' /* Deselect */
'rev "A ram:revtemp.txt"' /* Save selected lines temporarily*/
if vltscreen = "" then do
address COMMAND 'ttx ram:revtemp.txt' /* Edit it */
end
else do
address COMMAND 'ttx ram:revtemp.txt screen 'vltscreen
end